Fix version detection by the Ubuntu/Debian build script
authorIstván Váradi <ivaradi@varadiistvan.hu>
Tue, 11 Mar 2025 15:09:05 +0000 (16:09 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 13 Mar 2025 01:53:18 +0000 (01:53 +0000)
Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
admin/linux/debian/scripts/git2changelog.py

index f5f99186964ca0ff84dd9c86f06f32d9e226c2ae..494cd3399e727220b3e4d909c0c819f2e7651aee 100755 (executable)
@@ -31,7 +31,7 @@ def getCommitVersion(commit):
     try:
         for line in subprocess.check_output(["git", "show",
                                              commit + ":VERSION.cmake"]).splitlines():
-            m = re.match("set\( MIRALL_VERSION_([A-Z]+) +([0-9]+) *\)", line)
+            m = re.match("set\( *MIRALL_VERSION_([A-Z]+) +([0-9]+) *\)", line)
             if m is not None:
                 kind=m.group(1)
                 version=m.group(2)